﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Domain.Message.Request.Message
{
    public class MemberPrizeReq
    {
        /// <summary>
        /// Desc:使用状态 0 未使用  1 已使用 2 已过期
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? IsUsed { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public Guid? ShopId { get; set; }
    }


    public class MemberPrizeAct
    {
        /// <summary>
        /// 活动ID       
        /// </summary>           
        public Guid ActivityID { get; set; }

        /// <summary>
        /// 奖励记录ID
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 奖品明细ID
        /// </summary>
        public Guid PrizeID { get; set; }

        /// <summary>
        /// 奖品数量
        /// </summary>
        public int Qty { get; set; }

        /// <summary>
        /// 奖品类型(这里是创建订单所需要的)0：商品 1：服务 6：代金券 7=优惠券
        /// </summary>
        public int ItemType { get; set; }
    }


    public class SendCouponAct
    {
        /// <summary>
        /// Desc:普通活动ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public Guid? ActivityId { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public Guid ShopId { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public Guid MemberId { get; set; }

        /// <summary>
        /// 优惠券发放配置数组
        /// </summary>
        public List<CouponSetAct> CouponSetActs { get; set; } 

        /// <summary>
        /// 加盟商ID
        /// </summary>
        public Guid? CustomerId { get; set; }

        /// <summary>
        /// 事件类型  1=登录事件、2=评价、3=生日、4=到店任意消费、5=累计消费、6=一次性消费 7=注册 ,8=扫码领取  9=通用活动的扫码兑换 10=通用活动的分享奖励   11=优惠券活动自动发放  12 大转盘中奖发放
        /// </summary>           
        public int? TriggerEvent { get; set; }

    }


    public class CouponSetAct
    {
        /// <summary>
        /// 发放数量       
        /// </summary>           
        public int? Qty { get; set; }

        /// <summary>
        /// 优惠券ID       
        /// </summary>           
        public Guid CouponId { get; set; }

    }


    public class AutoSendMemberCouponAct
    {
        /// <summary>
        /// Desc:普通活动ID
        /// Default:
        /// Nullable:False
        /// </summary>           
        public Guid ActivityId { get; set; }

        /// <summary>
        /// 店铺ID
        /// </summary>
        public Guid ShopId { get; set; }

        /// <summary>
        /// 会员ID
        /// </summary>
        public List<Guid> MemberIdList { get; set; }

        /// <summary>
        /// 优惠券发放配置数组
        /// </summary>
        public List<CouponSetAct> CouponSetActs { get; set; }

        /// <summary>
        /// 加盟商ID
        /// </summary>
        public Guid? CustomerId { get; set; }

        /// <summary>
        /// 事件类型  1=登录事件、2=评价、3=生日、4=到店任意消费、5=累计消费、6=一次性消费 7=注册 ,8=扫码领取  9=会员升级  11=优惠券活动自动发放 21=需要点击才能领取的的扫码领取     
        /// </summary>           
        public int? TriggerEvent { get; set; }

    }

    public class ShopInfo
    {
        public Guid ShopId { get; set; }

        public Guid? CustomerId { get; set; }

    }

}
